The INDEBUGMODE Boolean variable determines if a script is running in debug mode. Use this variable with an If statement to skip a task if a script is in debug mode. In the following example, an issue is added to Helix ALM if the value returned from the combobox items count is less than 5 and the script is not in debug mode.
Script.SetContext("BugReporter/1.0")
Script.RunApp()
value = Window("BugReporter Dialog").ComboBox("combobox1").Property("Number of Items")
If NOT(INDEBUGMODE) Then
If value < 5 Then
AddIssue("Error", "Number of items < 5", "Attached Script", "")
End If
End If
Window("BugReporter Dialog").Editbox("editbox8").TypeText("This is a test")
Window("BugReporter Dialog").Button("Quit").Click()